package com.woniuxy.woniuticket.moviemodule.dao;

import com.woniuxy.woniuticket.pojo.CinemaHall;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CinemaHallDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(CinemaHall record);

    int insertSelective(CinemaHall record);

    CinemaHall selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CinemaHall record);

    int updateByPrimaryKey(CinemaHall record);

    List<CinemaHall> selectAllCinemaHall(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    //查询所有大厅,返回给排片做选择
    List<CinemaHall> selectAllCinemaHalls();
}